package com.pay.good.controller;

import com.pay.common.utils.Result;
import com.pay.good.service.TGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/good/good")
public class GoodController {

    @Autowired
    private TGoodsService tGoodsService;



    /**
     * @description 同步商品到es
     * @params []
     * @return com.pay.common.utils.Result
     * @author 杰
     * @date 2025/8/8 15:03
     */
    @GetMapping("/syncGoodsToEs")
    public Result syncGoodsToEs() {
        return tGoodsService.syncGoodsToEs();
    }




}
